﻿using DevExpress.LookAndFeel;
using DevExpress.Skins;
using DevExpress.UserSkins;
using log4net;
using log4net.Config;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace Barcode_Project
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            var logRepo = LogManager.GetRepository(Assembly.GetEntryAssembly());

            var log4net_config_path = ConfigurationManager.AppSettings["program_path"].ToString() + "log4net.config";
            XmlConfigurator.Configure(logRepo, new FileInfo(log4net_config_path));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Entrance());
        }
    }
}
